package com.example.ibsp_demo.pojo.entity.user;

import org.apache.ibatis.type.Alias;

@Alias("UserInterest") // 显式指定别名为UserInterest
public class UserInterest {
    private Integer uiid;//记录id
    private Integer uid;//uid
    private String tag;//标签
    private double weight;//权重

    public UserInterest() {
    }

    public UserInterest(Integer uiid, Integer uid, String tag, double weight) {
        this.uiid = uiid;
        this.uid = uid;
        this.tag = tag;
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "UserInterest{" +
                "uiid=" + uiid +
                ", uid=" + uid +
                ", tag='" + tag + '\'' +
                ", weight=" + weight +
                '}';
    }

    public Integer getUiid() {
        return uiid;
    }

    public void setUiid(Integer uiid) {
        this.uiid = uiid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
